<!DOCTYPE html>
<!--[if IE 8]> <html lang="zh-cn" class="ie8 no-js"> <![endif]-->
<!--[if IE 9]> <html lang="zh-cn" class="ie9 no-js"> <![endif]-->
<!--[if !IE]><!-->
<html lang="zh-cn">
<!--<![endif]-->
<head>
    <meta charset="utf-8" />
    <title>{$meta_title}</title>
    <meta name="keywords" content="{$meta_keywords}" />
    <meta name="description" content="{$meta_description}" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta content="width=device-width, initial-scale=1" name="viewport" />
    <link href="{THEME_PATH}admin/global/plugins/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
    <link href="{THEME_PATH}admin/global/plugins/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css" />
    <link href="{HOME_THEME_PATH}pc/css/home.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">var memberpath = "{MEMBER_PATH}"</script>
    <script src="{THEME_PATH}admin/global/plugins/jquery.min.js" type="text/javascript"></script>
    <script src="{THEME_PATH}admin/global/plugins/bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
    <script src="/config/language/{SITE_LANGUAGE}/lang.js" type="text/javascript"></script>
    <script src="{THEME_PATH}js/layer/layer.js" type="text/javascript"></script>
    <script src="{THEME_PATH}js/cms.js" type="text/javascript"></script>
    <script src="{HOME_THEME_PATH}pc/scripts/home.js" type="text/javascript"></script>

</head>

<body class="page-container-bg-solid">
<div class="page-header">
    <div class="page-header-top-nav">
        <div class="container">
            <div class="row">
                <div class="col-md-6">
                    <a href="http://www.phpkaiyuancms.com" target="_blank">PHP开源CMS</a>
                    <span>|</span>
                    <a href="{SITE_MURL}">手机网站</a>
                    <span>|</span>
                    <a href="{MEMBER_URL}">会员中心</a>
                </div>
                <div class="col-md-6 text-right">
                    <div class="btn-group pull-right ">
                        <a class="" href="javascript:;" data-toggle="dropdown" data-hover="dropdown" data-close-others="true"> 网站导航
                            <i class="fa fa-angle-down"></i>
                        </a>
                        <ul class="dropdown-menu pull-right">
                            {cache name=module}
                            {if !$t.share}
                            <li>
                                <a href="{$t.url}">{$t.name}</a>
                            </li>
                            {/if}
                            {/cache}
                        </ul>
                    </div>
                    <div class="btn-group pull-right ">
                        <a class="" href="javascript:;" data-toggle="dropdown" data-hover="dropdown" data-close-others="true"> 快速发布
                            <i class="fa fa-angle-down"></i>
                            <span>|</span>
                        </a>
                        <ul class="dropdown-menu pull-right">
                            {cache name=module}
                            <li>
                                <a href="{dr_member_url($t.dirname.'/home/add')}">{$t.name}</a>
                            </li>
                            {/cache}
                        </ul>
                    </div>
                    <div class="btn-group pull-right">
                        <a class="" href="javascript:;" data-toggle="dropdown" data-hover="dropdown" data-close-others="true"> 内容管理
                            <i class="fa fa-angle-down"></i>
                            <span>|</span>
                        </a>
                        <ul class="dropdown-menu pull-right">
                            {cache name=module}
                            <li>
                                <a href="{dr_member_url($t.dirname.'/home/index')}">{$t.name}</a>
                            </li>
                            {/cache}
                        </ul>
                    </div>
                    <div class="btn-group pull-right ">
                        <a class="" href="javascript:;" data-toggle="dropdown" data-hover="dropdown" data-close-others="true"> 我的中心
                            <i class="fa fa-angle-down"></i>
                            <span>|</span>
                        </a>
                        <ul class="dropdown-menu pull-right">
                            <li>
                                <a href="{dr_member_url('account/index')}">资料修改</a>
                            </li>
                            <li>
                                <a href="{dr_member_url('account/avatar')}">上传头像</a>
                            </li>
                            <li>
                                <a href="{dr_member_url('account/password')}">修改密码</a>
                            </li>
                            <li class="divider"> </li>
                            <li>
                                <a href="{dr_member_url('pay/add')}">在线充值</a>
                            </li>
                            <li>
                                <a href="{dr_member_url('pay/index')}">财务流水</a>
                            </li>
                        </ul>
                    </div>
                    <div id="dr_member_info" class="pull-right">
                    </div>
                    <script type="text/javascript">
                        $.ajax({
                            type: "GET",
                            url:"{SITE_URL}index.php?c=api&m=member&format=jsonp",
                            dataType: "jsonp",
                            success: function(json){
                                $("#dr_member_info").html(json.html);
                            }
                        });
                    </script>

                </div>
            </div>
        </div>
    </div>
    <div class="page-header-top">
        <div class="container">
            <div class="page-logo">
                <a href="{SITE_URL}">
                    <img src="{HOME_THEME_PATH}pc/img/logo.png" alt="{SITE_NAME}" class="logo-default">
                </a>
            </div>

            <div class="page-header-module">
                {if defined('MODULE_NAME')}
                {MODULE_NAME}频道
                {else}
                PHP开源CMS程序
                {/if}
            </div>
            <div class="page-header-search">
                <form class="search-form" action="/index.php" method="get">
                    <input type="hidden" name="c" value="api">
                    <input type="hidden" name="m" value="search">
                    <input type="hidden" name="dir" id="dr_search_module_dir" >
                    <div class="input-group">
                        <div class="input-group-btn btn-group">
                            <button id="dr_search_module_name" type="button" class="btn default dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
                                <i class="fa fa-angle-down"></i>
                            </button>
                            <ul class="dropdown-menu">
                                <!--这是来列出全部可以搜索的内容模块-->
                                {php $top_search=[];}
                                {cache name=module}
                                {if !$t.setting.search.close}
                                {php !$top_search && $top_search=$t;}
                                <li><a href="javascript:dr_search_module_select('{$t.dirname}', '{$t.name}');"> {$t.name} </a></li>
                                {/if}
                                {/cache}
                            </ul>
                        </div>
                        <input type="text" placeholder="搜索内容..." name="keyword" class="fc-search-keyword form-control">
                        <div class="input-group-btn search-bttn">
                            <button class="btn default" type="submit"> <i class="fa fa-search"></i> </button>
                        </div>
                    </div>
                    <script>
                        // 这段js是用来执行搜索的
                        function dr_search_module_select(dir, name) {
                            $("#dr_search_module_dir").val(dir);
                            $("#dr_search_module_name").html(name+' <i class="fa fa-angle-down"></i>');
                        }
                        dr_search_module_select('{php echo defined('MOD_DIR') ? MOD_DIR : $top_search.dirname}', '{php echo defined('MODULE_NAME') ? MODULE_NAME : $top_search.name}');
                    </script>
                </form>
            </div>
            <div class="page-header-member">
                <div class="btn-group pull-right">
                    <button type="button" class="btn green  dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
                        <i class="fa fa-edit"></i>
                        免费发布信息
                    </button>
                    <ul class="dropdown-menu" role="menu">
                        {cache name=module}
                        <li>
                            <a href="{dr_member_url($t.dirname.'/home/add')}">{$t.name}</a>
                        </li>
                        {/cache}
                    </ul>
                </div>
                <div class="pull-right hometel"> 028-62562781 </div>
            </div>
        </div>
    </div>

    <div class="page-header-menu">
        <div class="container">

            <!-- 调用网站栏目菜单 -->
            <div class="hor-menu  ">
                <ul class="nav navbar-nav">
                    <li id="dr_nav_0" class="menu-dropdown classic-menu-dropdown {if $indexc}active{/if}">
                        <a href="{SITE_URL}" title="{SITE_TITLE}">首页</a>
                    </li>


                    <!--第一层：调用栏目-->
                    {category module=share pid=0}
                    <li class="menu-dropdown classic-menu-dropdown {if IS_SHARE && $catid && in_array($catid, $t.catids)} active{/if}">
                        <a href="{$t.url}" title="{$t.name}">{$t.name}</a>
                        {if $t.child}
                        <ul class="dropdown-menu pull-left">
                            {category module=share pid=$t.id return=t2}
                            <li class="{if $t2.child} dropdown-submenu{/if} {if IS_SHARE && $catid && in_array($catid, $t2.catids)} active{/if}">
                                <a href="{$t2.url}" class="nav-link nav-toggle " title="{$t2.name}">
                                    {$t2.name}
                                </a>
                                {if $t2.child}
                                <ul class="dropdown-menu pull-left">
                                    {category module=share pid=$t2.id return=t3}
                                    <li class="{if IS_SHARE && $catid && in_array($catid, $t3.catids)} active{/if}">
                                        <a href="{$t3.url}" title="{$t3.name}">
                                            {$t3.name}
                                        </a>
                                    </li>
                                    {/category}
                                </ul>
                                {/if}
                            </li>
                            {/category}
                        </ul>
                        {/if}
                    </li>
                    {/category}


                    <!--调用所有独立模块-->
                    {cache name=module}
                    {if !$t.share}
                    <li class="menu-dropdown classic-menu-dropdown {if (MOD_DIR && $t.dirname==MOD_DIR)}active{/if}">
                        <a href="{$t.url}" title="{$t.title}">{$t.name}</a>
                    </li>
                    {/if}
                    {/cache}

                </ul>
            </div>
        </div>
    </div>
    <!-- END HEADER MENU -->
</div>